package com.openapi;

import com.openapi.protocol.ProtocolManager;
import exsun.jt808.data.enume.OrderSendStatus;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.filter.ShallowEtagHeaderFilter;

import javax.servlet.Filter;


@SpringBootApplication(scanBasePackages={"com.openapi"} ,exclude= {DataSourceAutoConfiguration.class})
@EnableTransactionManagement
public class ApplicationGateWayProtocol {
    public static void main(String[] args) {
        SpringApplication.run(ApplicationGateWayProtocol.class, args);
    }
    @Bean
    public Filter filter(){
        ShallowEtagHeaderFilter filter=new ShallowEtagHeaderFilter();
        return filter;
    }
}
